package remotecontrolcase.component;

/**
 * description:
 *  音响
 * @author yuanmenglv on 2019/11/30
 */
public class Stereo {
    private String cdNamd;

    public void on(){
        System.out.printf("打开音响,开始播放%s\n", this.cdNamd);
    }

    public void off(){
        System.out.println("关闭音响");
    }

    public void setCD(String cdName){
        this.cdNamd = cdName;
        System.out.println("放置CD");
    }


}
